package com.ningxia.water.enums;

/**
 * @author huangzhen
 * @create 2021-05-20 17:13
 */
public enum WarnCodeEnum {

    /**
     * code = 1 = 水量超额
     */
    VOLUME_EXPRESS(1, "水量超额"),
    /**
     * code = 2 = 机井故障
     */
    WELL_MALFUNCTION(2, "机井故障"),
    /**
     * code = 3 = 流量异常
     */
    VOLUME_ABNORMAL(3, "流量异常"),
    /**
     * code = 4 = 电池电量不足
     */
    BATTERY_POWER(4, "电池电量不足");

    private final Integer code;
    private final String value;

    WarnCodeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

}


